<%@page import="lib_model.Account.Account"%>
<%@ page language="java" contentType="text/html; charset=ISO-8859-1"
	pageEncoding="UTF-8"%>
<jsp:include page="../templates/Header.jsp"></jsp:include>
Change Password
<jsp:include page="../templates/Title.jsp"></jsp:include>
<jsp:include page="../templates/Style.jsp"></jsp:include>
<div class="body-center w960">
<h2 class="title-show">Change Password</h2>
<fieldset style="width: 700px;"><legend>Change
Password</legend>
<form action="../auth/ChangePassword" method="post">
<%
	HttpSession s = request.getSession();
	if (s.getAttribute("User") != null) {
		Account user = (Account) s.getAttribute("User");
%>
<table>
	<tr>
		<td>Username :</td>
		<td><input type="text" name="txtUsn" value="<%=user.username%>"
			disabled="disabled"></td>
	</tr>
	<tr>
		<td>Current Password :</td>
		<td><input type="password" name="txtCrpw"></td>
	</tr>
	<tr>
		<td>New Password :</td>
		<td><input type="password" name="txtNpw"></td>
	</tr>
	<tr>
		<td>Comfirm Password :</td>
		<td><input type="password" name="txtCfpw"></td>
	</tr>
	<tr>
		<th colspan="2"><input type="submit" value="OK" /><input
			type="reset" "/><br />
		<%
			if (request.getAttribute("Err") != null) {
		%> <%=request.getAttribute("Err")%> <%
 	}
 %>
		</th>
	</tr>
</table>
<%
	} else {
%> <a href="../pages/login.jsp">Not logged in</a> <%
 	}
 %>
</form>
</fieldset>
</div>


<jsp:include page="../templates/Footer.jsp"></jsp:include>